package com.xinyin.aiqinhaiback.common.Enum;


public enum ResultEnum {

    SUCCESS(200, "成功"),
    HEAT_DATA(1, "localhost"),
    COLD_DATA(2, "localhost"),
    COOLING_TOWER_DATA(3, "localhost"),
    CODE_FAIL(204, "验证码不正确"),
    PHONE_NULL(205,"手机号不存在"),
    WIRTEFAIL(2001,"写入失败"),
    NEW_USER(207,"新用户"),
    NOPAY(208,"未支付"),
    NOMONEY(209,"商家余额不足,调用认证服务失败！"),
    HASFACE(300,"单日只能认证一台"),
    NOUSER(301,"商家不存在！"),
    OPENID_NULL(206,"openid不存在"),
    VALIDATE_FAILED(400, "参数错误"),
    COMMON_FAILED(500, "系统错误"),
    FORBIDDEN(2004, "没有权限访问资源"),
    USER_LOGIN_SUCCESS(200,"登录成功"),
    USER_NOT_FOUND(50001,"用户不存在"),
    USER_AUTHENTICATION_ERROR(50002,"用户密码不正确"),
    TOKEN_ERROR(50003,"TOKEN错误"),
    USER_NOT_LOGIN(50004,"用户未登录"),
    ORDERCANCHEL(50005,"订单已取消"),
    NOLIVINGORDER(50003,"无入住订房"),
    ORDERCHACHELSUCCESS(50004,"订单取消成功"),
    CHACHELOUTIME(50005,"改订单已超过规定时间内取消,请联系商家处理！"),
    NOFINDTYPE(50007, "未找到该类型！"),
    UNOPEN(50006,"未开启锁屏"),
    EXPORT_ERROR(50008,"导出失败");
    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg
    ) {
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMessage() {
        return this.msg;
    }
}
